﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using SQLExecute;

public partial class manage_form_list_forms : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            Init_Combo();
    }
    protected void lnkLogout_Click(object sender, EventArgs e)
    {
       

        Session.Clear();
        Response.Redirect("../login/login.aspx");
    }

    protected void Init_Combo()
    {

        string sql = "select group_id,group_name from tbl_group_user";
        DataSet ds = SqlHelper.ExecuteDataset(Common.strConnect, CommandType.Text, sql);

        cbGroupUsers.DataTextField = "group_name";
        cbGroupUsers.DataValueField = "group_id";
        cbGroupUsers.DataSource = ds;
        cbGroupUsers.DataBind();

    }
    protected void gdListForms_HtmlRowCreated(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
    {
        e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#f7f7f7';");
        if ((e.VisibleIndex % 2) == 0)
        {
            e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='white';");
        }
        else
        {
            e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='white';");
        }
    }
}
